package com.grechur.wanandroidcompose.http.service

import com.grechur.wanandroidcompose.bean.article.ArticlesBean
import com.grechur.wanandroidcompose.bean.banner.BannerBean
import retrofit2.http.GET
import retrofit2.http.Path

interface HomeService {

    @GET("/banner/json")
    suspend fun getBanner():BannerBean?

    @GET("/article/list/{pageIndex}/json")
    suspend fun getHomeArticle(@Path("pageIndex") pageIndex:Int): ArticlesBean?
}